﻿@model User
<div class="w20 fl">
    <div class="site-block">
        <div class="p-10">
            @ForumContext.AvatarRender(Model.Avatar, Model.Sex)
            <div class="fr-field bold center">
                @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.USER_INFO, Model.UserName), Model.UserName, new { @class = Model.CssClass })
            </div>
            <div class="fr-field">
                <dl>
                    <dt>
                        @ForumContext.GetText(LanguageSection.USER_INFO, "GROUP") : </dt>
                    <dd class="@Model.CssClass">
                        @Model.RoleName
                    </dd>
                </dl>
            </div>
            <div class="fr-field">
                <dl>
                    <dt>
                        @ForumContext.GetText(LanguageSection.USER_INFO, "RegDate"): </dt>
                    <dd>
                        @ForumContext.ShortDateTimeFormat(Model.RegDate)
                    </dd>
                </dl>
            </div>
            <div class="fr-field">
                <dl>
                    <dt>
                        @ForumContext.GetText(LanguageSection.USER_INFO, "TotalPosts"): </dt>
                    <dd>
                        @Model.TotalPosts
                    </dd>
                </dl>
            </div>
            <div class="fr-field">
                <dl>
                    <dt>
                        @ForumContext.GetText(LanguageSection.USER_INFO, "TotalVisits"): </dt>
                    <dd>
                        @Model.TotalVisits
                    </dd>
                </dl>
            </div>
        </div>
    </div>
</div>
<div class="w80 fl">
    <div class="p-l-10">
        <div class="wrapper">
            <div id="tabs">
                <ul>
                    <li>@Html.Link("#my-info", ForumContext.GetText(LanguageSection.USER_INFO, "MY_INFO"))</li>
                    <li>@Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.FRIENDS, Model.UserId), ForumContext.GetText(LanguageSection.USER_INFO, "FRIENDS"))</li>
                </ul>
                <div id="my-info">
                    @*  <div class="site-block-head">
                        Thông tin cá nhân
                    </div>*@
                    <fieldset>
                        <legend>@ForumContext.GetMvcText(LanguageSection.USER_INFO, "BIO")</legend>
                        <div>
                            @Model.Bio
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>@ForumContext.GetMvcText(LanguageSection.USER_INFO, "Hobby")</legend>
                        <div>
                            @Model.Hobby
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>
                            @ForumContext.GetMvcText(LanguageSection.USER_INFO, "CONTACT_INFO")
                        </legend>
                        <table style="border-spacing: 5px;">
                            <tr>
                                <td class="w20">
                                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "FULLNAME")
                                </td>
                                <td>
                                    @Model.FullName
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "BirthDay")
                                </td>
                                <td>
                                    @if ((Model.Birthday.HasValue))
                                    {
                                        @ForumContext.PrettyDate(Model.Birthday.Value)    
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "Address")
                                </td>
                                <td>
                                    @Model.Address
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "YM")
                                </td>
                                <td>
                                    @if (!string.IsNullOrWhiteSpace(Model.YahooId))
                                    {
                                        @Html.Link(string.Format("ymsgr:sendIM?{0}", Model.YahooId), Model.YahooId)
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "SK")
                                </td>
                                <td>
                                    @if (!string.IsNullOrWhiteSpace(Model.SkypeId))
                                    {
                                        @Html.Link(string.Format("skype:{0}?chat", Model.SkypeId), Model.SkypeId)
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "Website")
                                </td>
                                <td>
                                    @if (!string.IsNullOrWhiteSpace(Model.Website))
                                    {
                                        @Html.Link(Model.Website, Model.Website)
                                    }
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
            </div>
        </div>
    </div>
</div>
